﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SettingPanel : MonoBehaviour
{
    public Button voiceBtn;
    public Button phoneBtn;
    public Button privacyBtn;//隐私政策按钮
    public Button termsBtn;//使用条款按钮
    public Button closeBtn;

    public GameObject settingPanel;

    // Start is called before the first frame update
    void Start()
    {
        voiceBtn.onClick.AddListener(OnClickVoiceBtn);
        phoneBtn.onClick.AddListener(OnClickPhoneBtn);
        privacyBtn.onClick.AddListener(OnClickPrivacyBtn);
        termsBtn.onClick.AddListener(OnClickTermsBtn);
        closeBtn.onClick.AddListener(OnClickCloseBtn);
    }

    public void OnClickVoiceBtn()
    {

    }

    public void OnClickPhoneBtn()
    {

    }

    public void OnClickPrivacyBtn()
    {

    }

    public void OnClickTermsBtn()
    {

    }

    public void OnClickCloseBtn()
    {
        settingPanel.SetActive(false);
    }

    // Update is called once per frame
    void Update()
    {

    }
}
